/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-left {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 24px;
    margin-right: 15px;
}

.header-title {
    font-size: 20px;
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
}

.user-info {
    margin-right: 20px;
    font-size: 14px;
}

.logout-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* 布局容器 */
.container {
    display: flex;
    height: calc(100vh - 60px);
}

/* 侧边栏样式 */
.sidebar {
    width: 280px;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
    padding: 20px 0;
    overflow-y: auto;
    flex-shrink: 0;
}

.menu-group {
    margin-bottom: 15px;
}

.menu-group-title {
    padding: 10px 20px;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.menu-item {
    padding: 0 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    font-size: 14px;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    overflow: hidden;
    box-sizing: border-box;
}

.menu-item:hover {
    background-color: #f8f9ff;
    border-left-color: #667eea;
}

.menu-item.active {
    background-color: #f8f9ff;
    border-left-color: #667eea;
    color: #667eea;
}

.menu-icon {
    font-size: 18px;
    margin-right: 12px;
    width: 24px;
    height: 24px;
    text-align: center;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    line-height: 24px;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-variant-emoji: emoji;
}

.menu-text {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    display: inline-block;
    vertical-align: middle;
    line-height: 24px;
}

/* 表情符号优化 - 合并到上面的.menu-icon样式中 */

/* 主内容区域 */
.main-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.page-header {
    margin-bottom: 20px;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.page-description {
    font-size: 14px;
    color: #666;
}

.content-area {
    display: none;
}

.content-area.active {
    display: block;
}

/* 统计卡片样式 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.stat-title {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.stat-icon {
    font-size: 24px;
    opacity: 0.8;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.stat-subtitle {
    font-size: 12px;
    color: #999;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Tab样式 */
.tabs-container {
    margin-top: 20px;
}

.tabs {
    display: flex;
    border-bottom: 2px solid #e8e9ff;
    margin-bottom: 20px;
}

.tab {
    padding: 12px 24px;
    cursor: pointer;
    border: none;
    background: none;
    color: #666;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab:hover {
    color: #667eea;
    background-color: #f8f9ff;
}

.tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background-color: #f8f9ff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.table-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.calculation-container {
    padding: 20px;
}

.calculation-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.option-group h4 {
    margin-bottom: 15px;
    color: #333;
}

.option-group button {
    display: block;
    width: 100%;
    margin-bottom: 10px;
}

/* 快速操作样式 */
.quick-actions {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.actions-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.action-button {
    display: block;
    padding: 20px;
    background: #f8f9ff;
    border: 1px solid #e8e9ff;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    cursor: pointer;
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
    text-decoration: none;
    color: #333;
}

.action-title {
    font-size: 16px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 5px;
}

.action-desc {
    font-size: 12px;
    color: #666;
}

/* 表格样式 */
.table-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.table-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.btn-group {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-small {
    padding: 4px 8px;
    font-size: 12px;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd8;
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: #f8f9fa;
    color: #667eea;
    border: 1px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    text-decoration: none;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    color: white;
    text-decoration: none;
}

.search-form {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.form-group {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.form-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.form-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px; /* 减小字体以适应更多列 */
}

.data-table th, .data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.data-table tr:hover {
    background-color: #f8f9ff;
}

/* 部门测评关系表格特殊样式 */
#deptRelationsTableContent .data-table {
    min-width: 1500px; /* 设置最小宽度以适应所有列（增加权重名称列后） */
}

#deptRelationsTableContent .table-content {
    overflow-x: auto; /* 添加水平滚动 */
}

#deptRelationsTableContent .data-table th,
#deptRelationsTableContent .data-table td {
    padding: 8px 6px; /* 减小内边距 */
    white-space: nowrap; /* 防止文字换行 */
    text-align: center;
}

#deptRelationsTableContent .data-table th:first-child,
#deptRelationsTableContent .data-table td:first-child {
    width: 60px; /* 关系ID列宽度 */
}

#deptRelationsTableContent .data-table th:nth-child(2),
#deptRelationsTableContent .data-table td:nth-child(2) {
    width: 120px; /* 被测评部门列宽度 */
}

#deptRelationsTableContent .data-table th:nth-child(3),
#deptRelationsTableContent .data-table td:nth-child(3) {
    width: 100px; /* 测评教师列宽度 */
}

#deptRelationsTableContent .data-table th:nth-child(4),
#deptRelationsTableContent .data-table td:nth-child(4) {
    width: 120px; /* 测评教师部门列宽度 */
}

#deptRelationsTableContent .data-table th:nth-child(5),
#deptRelationsTableContent .data-table td:nth-child(5),
#deptRelationsTableContent .data-table th:nth-child(6),
#deptRelationsTableContent .data-table td:nth-child(6) {
    width: 80px; /* 指标编号和权重编号列宽度 */
}

#deptRelationsTableContent .data-table th:nth-child(7),
#deptRelationsTableContent .data-table td:nth-child(7) {
    width: 100px; /* 权重名称列宽度 */
}

#deptRelationsTableContent .data-table th:nth-child(8),
#deptRelationsTableContent .data-table td:nth-child(8),
#deptRelationsTableContent .data-table th:nth-child(9),
#deptRelationsTableContent .data-table td:nth-child(9),
#deptRelationsTableContent .data-table th:nth-child(10),
#deptRelationsTableContent .data-table td:nth-child(10),
#deptRelationsTableContent .data-table th:nth-child(11),
#deptRelationsTableContent .data-table td:nth-child(11),
#deptRelationsTableContent .data-table th:nth-child(12),
#deptRelationsTableContent .data-table td:nth-child(12) {
    width: 70px; /* 分数列宽度 */
}

#deptRelationsTableContent .data-table th:nth-child(13),
#deptRelationsTableContent .data-table td:nth-child(13) {
    width: 80px; /* 测评标识列宽度 */
}

#deptRelationsTableContent .data-table th:nth-child(14),
#deptRelationsTableContent .data-table td:nth-child(14) {
    width: 100px; /* 测评时间列宽度 */
}

#deptRelationsTableContent .data-table th:last-child,
#deptRelationsTableContent .data-table td:last-child {
    width: 120px; /* 操作列宽度 */
}

/* 教师测评关系表格特殊样式 */
#teacherRelationsTableContent .data-table {
    min-width: 1600px; /* 设置最小宽度以适应所有列 */
}

#teacherRelationsTableContent .table-content {
    overflow-x: auto; /* 添加水平滚动 */
}

#teacherRelationsTableContent .data-table th,
#teacherRelationsTableContent .data-table td {
    padding: 8px 6px; /* 减小内边距 */
    white-space: nowrap; /* 防止文字换行 */
    text-align: center;
}

#teacherRelationsTableContent .data-table th:first-child,
#teacherRelationsTableContent .data-table td:first-child {
    width: 60px; /* 关系ID列宽度 */
}

#teacherRelationsTableContent .data-table th:nth-child(2),
#teacherRelationsTableContent .data-table td:nth-child(2),
#teacherRelationsTableContent .data-table th:nth-child(4),
#teacherRelationsTableContent .data-table td:nth-child(4) {
    width: 100px; /* 被测评教师和测评教师列宽度 */
}

#teacherRelationsTableContent .data-table th:nth-child(3),
#teacherRelationsTableContent .data-table td:nth-child(3),
#teacherRelationsTableContent .data-table th:nth-child(5),
#teacherRelationsTableContent .data-table td:nth-child(5) {
    width: 120px; /* 部门列宽度 */
}

#teacherRelationsTableContent .data-table th:nth-child(6),
#teacherRelationsTableContent .data-table td:nth-child(6),
#teacherRelationsTableContent .data-table th:nth-child(7),
#teacherRelationsTableContent .data-table td:nth-child(7) {
    width: 80px; /* 指标编号和权重编号列宽度 */
}

#teacherRelationsTableContent .data-table th:nth-child(8),
#teacherRelationsTableContent .data-table td:nth-child(8) {
    width: 100px; /* 权重名称列宽度 */
}

#teacherRelationsTableContent .data-table th:nth-child(9),
#teacherRelationsTableContent .data-table td:nth-child(9) {
    width: 60px; /* 排序列宽度 */
}

#teacherRelationsTableContent .data-table th:nth-child(10),
#teacherRelationsTableContent .data-table td:nth-child(10),
#teacherRelationsTableContent .data-table th:nth-child(11),
#teacherRelationsTableContent .data-table td:nth-child(11),
#teacherRelationsTableContent .data-table th:nth-child(12),
#teacherRelationsTableContent .data-table td:nth-child(12),
#teacherRelationsTableContent .data-table th:nth-child(13),
#teacherRelationsTableContent .data-table td:nth-child(13),
#teacherRelationsTableContent .data-table th:nth-child(14),
#teacherRelationsTableContent .data-table td:nth-child(14) {
    width: 70px; /* 分数列宽度 */
}

#teacherRelationsTableContent .data-table th:nth-child(15),
#teacherRelationsTableContent .data-table td:nth-child(15) {
    width: 80px; /* 测评标识列宽度 */
}

#teacherRelationsTableContent .data-table th:nth-child(16),
#teacherRelationsTableContent .data-table td:nth-child(16) {
    width: 100px; /* 测评时间列宽度 */
}

#teacherRelationsTableContent .data-table th:last-child,
#teacherRelationsTableContent .data-table td:last-child {
    width: 120px; /* 操作列宽度 */
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
}

.pagination button {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
}

.pagination button:hover {
    background: #f8f9fa;
}

.pagination button.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 10px;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.empty {
    text-align: center;
    padding: 40px;
    color: #999;
}

.error {
    text-align: center;
    padding: 40px;
    color: #dc3545;
}

/* 分页样式 */
.pagination-btn {
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination-btn:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
    }

    .search-form {
        flex-direction: column;
    }

    .form-group {
        min-width: auto;
    }
}

/* 新增样式：修复快速操作按钮和分数管理问题 */
.action-button:focus {
    outline: none;
    text-decoration: none;
    color: #333;
}

.action-button:active {
    text-decoration: none;
    color: #333;
}

/* 数据导出样式 */
.export-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.export-section {
    margin-bottom: 30px;
}

.export-section:last-child {
    margin-bottom: 0;
}

.export-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 2px solid #e8e9ff;
    padding-bottom: 10px;
}

.export-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.export-buttons .btn {
    justify-self: start;
}

/* 测评分数管理专用样式 */
.score-tabs {
    display: flex;
    border-bottom: 2px solid #e8e9ff;
    margin-bottom: 20px;
    overflow-x: auto;
}

.score-tab {
    padding: 12px 20px;
    cursor: pointer;
    border: none;
    background: none;
    color: #666;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 120px;
}

.score-tab:hover {
    color: #667eea;
    background-color: #f8f9ff;
}

.score-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background-color: #f8f9ff;
}

.score-tab-content {
    display: none;
}

.score-tab-content.active {
    display: block;
}

/* 计算操作样式 */
.calculation-section {
    background: #f8f9ff;
    border: 1px solid #e8e9ff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.calculation-section h4 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 16px;
}

.calculation-buttons {
    display: flex;
    flex-wrap: wrap;
}

/* 部门分数详情模态框样式 */
.dept-info-section {
    background: #f8f9ff;
    border: 1px solid #e8e9ff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.dept-info-section h4 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 16px;
    border-bottom: 2px solid #e8e9ff;
    padding-bottom: 8px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: center;
}

.info-item label {
    font-weight: 600;
    color: #333;
    margin-right: 8px;
    min-width: 80px;
}

.info-item span {
    color: #666;
    font-size: 14px;
}

.indicators-section {
    margin-top: 20px;
}

.indicators-section h4 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 16px;
    border-bottom: 2px solid #e8e9ff;
    padding-bottom: 8px;
}

.score-value {
    font-weight: 600;
    color: #667eea;
}

.score-rate {
    font-weight: 600;
    color: #28a745;
}

.modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

.modal-body {
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

.empty, .error, .loading {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.error {
    color: #dc3545;
}

.loading {
    color: #667eea;
}
    gap: 10px;
}

.calculation-buttons .btn {
    min-width: 150px;
}

/* 状态指示器 */
.status-success {
    color: #28a745;
    font-weight: 600;
}

.status-warning {
    color: #ffc107;
    font-weight: 600;
}

.status-danger {
    color: #dc3545;
    font-weight: 600;
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 提示消息样式 */
.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid transparent;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
} 